package com.lyj.common.core.enmus;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LIUYANJIAO
 * Date: 2025-08-02
 * Time: 21:25
 */

@AllArgsConstructor
@Getter
public enum ResultCode {
    // 操作成功
    SUCCESS(200, "操作成功"),

    //服务器报错
    ERROR(5001, "服务器内部错误，请稍后重试"),
    FAILED_PARAMS_VALIDATE(3002,"参数校验失败"),

    // 错误码枚举
    EMAIL_FORMAT_ERROR(4001, "邮箱格式不正确，请输入如 xxx@xx.com 的标准格式"),
    SEND_FREQUENCY_TOO_HIGH(4002, "发送频率过高，请 60 秒后再试"),
    DAILY_SEND_LIMIT_EXCEEDED(4003, "当日发送次数已达上限（30 次），请明日再试"),
    VERIFICATION_CODE_SEND_FAILED(4004, "验证码发送失败，请检查邮箱是否有效");

    /**
     * 状态码
     */
    private int code;
    /**
     * 状态描述
     */
    private String msg;
}